package top.goldenyear.porpoise.framework.security.config;

import cn.dev33.satoken.dao.SaTokenDao;
import cn.dev33.satoken.dao.SaTokenDaoForRedisx;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;

/**
 * SaToken鉴权配置
 *
 * @author airhead
 */
@Configuration
public class SaTokenConfigure {

  @Bean
  public SaTokenDao saTokenDaoInit(@Inject("${porpoise.cache}") SaTokenDaoForRedisx saTokenDao) {
    return saTokenDao;
  }
}
